package com.tduck.cloud.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tduck.cloud.system.entity.SysAnnounceSendEntity;
import com.tduck.cloud.system.vo.AnnouncementSendVO;
import com.tduck.cloud.system.vo.UnReadAnnouncementVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 通知公告
 *
 * @author tduck
 */
public interface SysAnnouncementSendMapper extends BaseMapper<SysAnnounceSendEntity> {


    /**
     * 分页获取我的消息
     */
    List<AnnouncementSendVO> selectMyAnnouncementSendList(Page<AnnouncementSendVO> page, @Param("announcementSendModel") AnnouncementSendVO announcementSendModel);


    /**
     * 查询我未读消息列表
     * @return 未读消息列表
     */
    List<UnReadAnnouncementVO> selectUnReadAnnouncementList(@Param("userId") Long userId, @Param("msgCategory") String msgCategory);
}
